package com.sisyphus.spinach.helper.validation;

import android.content.Context;
import android.widget.Toast;

/**
 * 提示失败信息
 */
public class ToastFailedCallback implements IFailedCallback {

    private final Context context;

    public ToastFailedCallback(Context context) {
        this.context = context;
    }

    @Override
    public void failed(CharSequence errorMessage) {
        Toast.makeText(context, errorMessage, Toast.LENGTH_SHORT).show();
    }

}
